package com.hellobike.haxing.modules.product.constant;

import com.hellobike.haxing.modules.product.util.MapUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description
 * @Author ZLB
 * @Date 2020/2/24
 * @Version 1.0
 **/
public class Constants {

    //商品类型
    public static final Map<Integer, String> spuTypeMap = new HashMap<Integer, String>(){{
        put(1, "生鲜");
        put(2, "日杂");
    }};
    public static final Map<String, Integer> spuTypeReverseMap = MapUtil.reverse(spuTypeMap);

    //备货类型
    public static final Map<Integer, String> stockTypeMap = new HashMap<Integer, String>(){{
        put(0, "非常备货");
        put(1, "常备货");
    }};
    public static final Map<String, Integer> stockTypeReverseMap = MapUtil.reverse(stockTypeMap);

    //标品类型
    public static final Map<Integer, String> standardMap = new HashMap<Integer, String>(){{
        put(0, "非标品");
        put(1, "标品");
    }};
    public static final Map<String, Integer> standardReverseMap = MapUtil.reverse(standardMap);

    //存储类型
    public static final Map<Integer, String> storeTypeMap = new HashMap<Integer, String>(){{
        put(1, "常温");
        put(2, "冷藏");
        put(3, "冷冻");
    }};
    public static final Map<String, Integer> storeTypeReverseMap = MapUtil.reverse(storeTypeMap);

    //物流商品状态
    public static final Map<Integer, String> logisticsStatusMap = new HashMap<Integer, String>(){{
        put(1, "正常");
        put(2, "淘汰");
        put(3, "试新");
    }};
    public static final Map<String, Integer> logisticsStatusReverseMap = MapUtil.reverse(logisticsStatusMap);

    //保质期单位
    public static final Map<Integer, String> shelfLifeUnitMap = new HashMap<Integer, String>(){{
        put(1, "天");
        put(2, "月");
        put(3, "年");
    }};
    public static final Map<String, Integer> shelfLifeUnitReverseMap = MapUtil.reverse(shelfLifeUnitMap);

    //产地类型
    public static final Map<Integer, String> originTypeMap = new HashMap<Integer, String>(){{
        put(1, "国内");
        put(2, "国外");
    }};
    public static final Map<String, Integer> originTypeReverseMap = MapUtil.reverse(originTypeMap);

    //适用点位类型
    public static final Map<Integer, String> availableTypeMap = new HashMap<Integer, String>(){{
        put(0, "全部点位");
        put(1, "指定点位");
    }};
    public static final Map<String, Integer> availableTypeReverseMap = MapUtil.reverse(availableTypeMap);
}
